package com.zlp.member.service;

import com.alibaba.fastjson.JSONObject;
import com.zlp.common.base.BaseResponse;
import com.zlp.member.input.dao.UserLoginInpDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @description: 会员注册服务接口
 * @author: ZouLiPing
 * @contact: 请关注微信公众号“给自己一个smile”里面有详细电商项目文档,weixin:zlp865391093
 * @date: 2019年3月29日15:18:33
 * @version V1.0
 */
@Api(tags = "会员登入接口")
public interface MemberLoginService {

    /**
     * 用户登陆接口
     *
     * @param userLoginInpDTO
     * @return
     */
    @PostMapping("/login")
    @ApiOperation(value = "会员用户登陆信息接口")
    BaseResponse<JSONObject> login(@RequestBody UserLoginInpDTO userLoginInpDTO);

    /**
     * 退出登陆接口
     *
     * @param token
     * @return
     */
    @PostMapping("/updateTokenInvalid")
    @ApiOperation(value = "会员用户退出接口")
    BaseResponse<JSONObject> updateTokenInvalid(@RequestParam("token") String token);
}
